package com.jl.jlapp.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jl.jlapp.R;
import com.jl.jlapp.eneity.OrderMessageListModel;

import java.text.SimpleDateFormat;
import java.util.List;

public class OrderMessageListAdapter
  extends BaseQuickAdapter<OrderMessageListModel.ResultDataBean, BaseViewHolder>
{
  public OrderMessageListAdapter(@LayoutRes int paramInt, @Nullable List<OrderMessageListModel.ResultDataBean> paramList)
  {
    super(paramInt, paramList);
  }
  
  protected void convert(BaseViewHolder paramBaseViewHolder, OrderMessageListModel.ResultDataBean paramResultDataBean)
  {
    paramBaseViewHolder.setText(R.id.order_no, paramResultDataBean.getOrderTable().getOrderNo());
    paramBaseViewHolder.setText(R.id.order_state, paramResultDataBean.getOrderStateDetail());
    paramBaseViewHolder.setText(R.id.state_change_time, new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Long.valueOf(paramResultDataBean.getAddTime())));
    paramBaseViewHolder.setText(R.id.order_message_time, new SimpleDateFormat("M月d日 HH:mm:ss").format(Long.valueOf(paramResultDataBean.getAddTime())));
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/adapter/OrderMessageListAdapter.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */